import state from './state';
import * as type from './type';

const matutaions = {
    getLoginInfo(state, res) {
        state.LoginInfo = res;
    },
    getActivity(state, res) {
        state.ActivityList = res;
    },
    [type.SET_ST](state, data) {
        state.UserInfo.ST = data;
    },
    [type.SET_USERTYPE](state, data) {
        state.UserInfo.UserTypeEnum = data;
    },
    [type.SET_NAME](state, data) {
        state.UserInfo.Name = data;
    },
    [type.SET_VERIFYVODE](state, data) {
        state.UserInfo.VerifyVode = data;
    },
    [type.SET_PHONE](state, data) {
        state.UserInfo.Phone = data;
    },
    [type.SET_COMPANY](state, data) {
        state.UserInfo.Company = data;
    },
    [type.SET_POST](state, data) {
        state.UserInfo.Post = data;
    },
    [type.SET_HEADIMAGE](state, data) {
        state.UserInfo.HeadImage = data;
    },
    [type.SET_IDCARD](state, data) {
        state.UserInfo.IDCard = data;
    },
    [type.SET_IDENTIFIER](state, data) {
        state.UserInfo.Identifier = data;
    },
    [type.SET_UNIONID](state, data) {
        state.UserInfo.Unionid = data;
    },
    [type.SET_PROVINCECITYDISTRICT](state, data) {
        state.UserInfo.ProvinceCityDistrict = data;
    },
    [type.SET_PROVINCE](state, data) {
        state.UserInfo.Province = data;
    },
    [type.SET_CITY](state, data) {
        state.UserInfo.City = data;
    },
    [type.SET_DISTRICT](state, data) {
        state.UserInfo.District = data;
    },
    [type.SET_SEX](state, data) {
        state.UserInfo.Sex = data;
    },
    [type.SET_WISH](state, data) {
        state.UserInfo.Wish = data;
    },
    [type.SET_AGE](state, data) {
        state.UserInfo.Age = data;
    },
    [type.SET_ADDRESS](state, data) {
        state.UserInfo.Address = data;
    },
    [type.SET_EMAIL](state, data) {
        state.UserInfo.Email = data;
    },
    [type.SET_ABOUTUS](state, data) {
        state.UserInfo.AboutUs = data;
    },
    [type.SET_BUSINESSLICENSE](state, data) {
        state.UserInfo.BusinessLicense = data;
    },
    [type.SET_TAXNUMBER](state, data) {
        state.UserInfo.TaxNumber = data;
    },
    [type.SET_USERAGENT](state, data) {
        state.UserInfo.UserAgent = data;
    },
    [type.SET_COUNTRY](state, data) {
        state.UserInfo.Country = data;
    },
    [type.SET_CERTIFICATETYPEENUM](state, data) {
        state.UserInfo.CertificateTypeEnum = data;
    },
    [type.SET_TITLE](state, data) {
        state.UserInfo.Title = data;
    },
    [type.SET_ISMATCHMAKING](state, data) {
        state.UserInfo.IsMatchMaking = data;
    },
    [type.SET_ISDIETARY](state, data) {
        state.UserInfo.IsDietary = data;
    },
    [type.SET_DIETARYTABOOS](state, data) {
        state.UserInfo.DietaryTaboos = data;
    },
    [type.SET_ISADVERTISING](state, data) {
        state.UserInfo.IsAdvertising = data;
    },
    [type.SET_CUSTOMVALUE](state, data) {
        state.UserInfo.CustomValue = data;
    },
    [type.SET_CUSTOMVALUETWO](state, data) {
        state.UserInfo.CustomValueTwo = data;
    },
    [type.SET_CUSTOMVALUETHREE](state, data) {
        state.UserInfo.CustomValueThree = data;
    },
    [type.SET_OPENID](state, data) {
        state.UserInfo.WeixinID = data;
    },
    [type.SET_QUEST](state, data) {
        state.UserInfo.QuestionnaireItems = data;
    },
    [type.SET_TICKETID](state, data) {
        state.UserInfo.TickID = data;
    },
    [type.SET_BUYNUM](state, data) {
        state.UserInfo.BuyNum = data;
    },
    [type.SET_PROMOCODE](state, data) {
        state.UserInfo.PromoCode = data;
    },
    [type.SET_SESSIONID](state, data) {
        state.UserInfo.SessionID = data;
    },
    [type.SET_TOKEN](state, data) {
        state.UserInfo.Token = data;
    },
    [type.SET_PROMOTIONCODE](state, data) {
        state.UserInfo.PromotionCode = data;
    },
    // getActivity(state, data) {
    //     state.ActivityList = data;
    // },
    setBilingual(state, data) {
        state.IsBilingual = data;
    },
    setFormSubmitStatus(state, data) {
        state.IsHaveUnsubmittedForm = data;
    }
};

export default matutaions;